package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.po.PointsBoard;
import com.tianji.learning.domain.query.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;

import java.util.List;


/**
 * <p>
 * 学霸天梯榜 服务类
 * </p>
 *
 */
public interface PointsBoardService extends IService<PointsBoard> {

    /**
     * 根据赛季 ID 创建积分排行榜表
     * @param season
     */
    void createPointsBoardTableBySeason(Integer season);

    /**
     * 分页读取Redis榜单数据
     * @param key
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<PointsBoard> queryCurrentBoardList(String key, int pageNo, int pageSize);

    /**
     * 分页查询指定赛季的积分排行榜
     * @param pointsBoardQuery
     * @return
     */
    PointsBoardVO queryPointsBoardBySeason(PointsBoardQuery pointsBoardQuery);
}
